#ifndef WARNINFO_H
#define WARNINFO_H
#include <QObject>


class Warninfo: public QObject
{
    Q_OBJECT
public:
   explicit Warninfo(QObject *parent = 0);
    Q_INVOKABLE void updateWarnInfo(QString name,QString superhigh,QString high,QString low,QString superlow,QString dead,QString decline,
                                    QString increase
                                    );
    Q_INVOKABLE void selectWarnInfobyName(QString gasname);
    Q_INVOKABLE QString getsuperhigh_warn(void);
     Q_INVOKABLE QString gethigh_warn(void);
     Q_INVOKABLE QString getlow_warn(void);
     Q_INVOKABLE QString getsuperlow_warn(void);
     Q_INVOKABLE QString getdead_zone(void);
     Q_INVOKABLE QString getdecline_warn(void);
     Q_INVOKABLE QString getincrease_warn(void);
   //QString setwarninfo();

private:
    QString superhigh_warn;
    QString high_warn;
    QString low_warn;
    QString superlow_warn;
    QString dead_zone;
    QString decline_warn;
    QString increase_warn;
};




#endif // WARNINFO_H
